package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.AccidentDO;
import com.mhc.suzuki.dal.query.AccidentQuery;

import java.util.List;


/**
 * Manager for Accident.
 */
public interface AccidentManager {
    /**
     * query count by query condition.
     */
    int countByQuery(AccidentQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(AccidentQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(AccidentDO record);

    /**
     * insert selective.
     */
    long insertSelective(AccidentDO record);

    /**
     * select by query condition.
     */
    List<AccidentDO> selectByQuery(AccidentQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<AccidentDO> selectByQueryWithPage(AccidentQuery query);

    /**
     * select by primary key.
     */
    AccidentDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( AccidentDO record,  AccidentQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(AccidentDO record, AccidentQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(AccidentDO record);
}